package com.ebelter.bodyfatscale.moudules.db.daos;


import com.ebelter.bodyfatscale.moudules.db.beans.HistoryMesureData;

public class HistoryMesureDataDao {
    //保存上传失败的数据
    public static boolean saveData(long userId,String mesureTime,float fat,float weight,float waterRate,
                                          float bmr,float vfl,float muscleV,float skeleV,float boneV,float bmi,float protein,int bodyAge,int bodyScore){
        HistoryMesureData h=new HistoryMesureData();
        h.userID=userId;
        h.measureTime=mesureTime;
        h.fat=fat;
        h.weight=weight;
        h.waterRate=waterRate;
        h.bmr=bmr;
        h.visceralFat=vfl;
        h.muscleVolume=muscleV;
        h.skeletalMuscle=skeleV;
        h.boneVolume=boneV;
        h.bmi=bmi;
        h.protein=protein;
        h.bodyAge=bodyAge;
        h.bodyScore=bodyScore;
        return h.save();
    }
}
